@import './main.scss';
$or:#FFA133;

body {
    >div {
        width: 100%;
    }
}

/* 顶部导航 */
.top-nav {
    background-color: #E3E4E5;
    height: 30px;


    li {
        float: left;
        height: 30px;
        padding: 0 2px;
        line-height: 30px;
    }

    .spacer {
        width: 1px;
        height: 12px;
        margin-top: 9px;
        padding: 0;
        background: #ccc;
        overflow: hidden;
    }
}

.ttbar-login {
    margin-right: 10px;
}



/* 主体 */
.main {
    background-color: #F6F6F6;

    >div {
        width: 1190px;
        margin: 0 auto;
    }
}

.main-header {
    height: 583px;
    position: relative;
    padding-bottom: 15px;
}

.main-header-nav {
    display: flex;
    background-color: white;

    >div,
    ul {
        height: 33px;
        line-height: 33px;
    }


    >div:nth-child(1) {
        width: 190px;
        background-color: $or;
        color: white;
        font-weight: bold;
        text-indent: 14px;
    }

    .nav {
        width: 740px;




        li {
            float: left;
            padding: 0 24px;

            a {
                color: black;
            }

            &:hover a {
                cursor: pointer;
                color: $or;
            }

            &:nth-child(1) {
                cursor: pointer;

                a {
                    color: $or;
                }
            }
        }



        li.spacer {
            width: 1px;
            height: 12px;
            padding: 0;
            background-color: #CCC;
            margin-top: 11px;
        }
    }

    >div:nth-of-type(2) {
        display: flex;

        p {

            padding-left: 30px;
            line-height: 33px;

            &:nth-of-type(1) {
                background: url(../img/index/main-header-nav-left.png) no-repeat left;
            }

            &:nth-of-type(2) {
                margin-left: 25px;
                background: url(../img/index/main-hearder-nav-right.png) no-repeat left;
            }
        }
    }
}

.main-menu {
    width: 100%;
    height: 550px;
    position: relative;

    .item {
        width: 160px;
        height: 60px;
        padding: 0 15px;
        border-top: 1px solid #fff;
        border-left: 1px solid #fff;
        background-color: #fff;
        overflow: hidden;


        .item-header {
            padding-top: 11px;
            border-bottom: 1px solid transparent;
            width: 159px;
            height: 49px;
            position: relative;

            >div {
                display: none;
                position: absolute;
                width: 1px;
                height: 59px;
                top: 0;
                right: -16px;
                background-color: #fff;
                z-index: 22;
            }

            h3 {
                color: #333;
                margin-bottom: 2px;
                position: relative;
                height: 20px;
                font-weight: 400;

                i {
                    position: absolute;
                    right: 0;
                    top: 4px;
                    display: block;
                    width: 5px;
                    height: 9px;
                    font-size: 14px;
                    font-family: simsun;
                    font-weight: 400;
                }
            }

            p {
                font-size: 12px;
                color: #999;
                height: 18px;
                width: 100%;
                white-space: nowrap;
                text-overflow: ellipsis;
                overflow: hidden;

                a {
                    font-size: 12px;
                    color: #999;
                    margin-right: 3px;
                    margin-left: 3px;

                    &:hover {
                        cursor: pointer;
                        color: $or;
                    }

                    &:nth-of-type(1) {
                        margin-left: 0;
                    }
                }
            }
        }

        .item-body {
            width: 780px;
            position: absolute;
            left: 190px;
            top: 0;
            background-color: #fff;
            box-shadow: 4px 0 8px rgb(0 0 0 / 20%);
            display: none;
            z-index: 21;

            >div {
                border-top: 1px solid #ddd;
                border-left: 1px solid #ddd;
                border-bottom: 1px solid #ddd;
                padding: 30px 30px 52px 56px;

                &:after {
                    content: ".";
                    display: block;
                    height: 0;
                    clear: both;
                    visibility: hidden;
                }
            }

            ul {
                width: 692px;
                position: relative;
                float: left;

                li {
                    float: left;
                    width: 190px;
                    height: 93px;
                    margin-right: 30px;
                    margin-bottom: 20px;
                    overflow: hidden;

                    div:nth-of-type(1) {
                        color: #333;
                        font-size: 14px;
                        font-weight: 700;
                        padding-bottom: 4px;
                        border-bottom: 1px solid #ddd;
                    }

                    div:nth-of-type(2) {
                        padding-top: 6px;

                        a {
                            margin-right: 14px;
                            margin-bottom: 5px;
                            font-size: 12px;
                            color: #777;
                            display: inline-block;
                        }


                    }
                }
            }
        }

        &:hover {
            cursor: pointer;
            border-top: 1px solid #ddd;
            border-left: 1px solid #ddd;
            border-bottom: 1px solid #ddd;
            height: 59px;

            .item-body {
                display: block;
                visibility: visible;
            }

            .item-header {
                h3 {
                    font-weight: bold;
                }
            }
        }

        &:nth-type-of(last) {
            height: 61px;

            .item_header {
                border-bottom-color: #fff;
            }
        }
    }


}

.main-swiper {
    position: absolute;
    margin-left: 200px;
    width: 780px;
    height: 100%;
    top: 33px;
    user-select: unset;

    .swiper-slide {
        background-position: center;
        background-size: cover;

        img {
            display: block;
            width: 100%;
        }
    }

    .button-next,
    .button-prev {
        user-select: unset;
        position: absolute;
        top: 50%;
        margin-top: -30px;
        display: block;
        width: 24px;
        height: 60px;
        line-height: 60px;
        background: rgba(0, 0, 0, .21);
        text-align: center;
        font-size: 24px;
        font-weight: 400;
        font-family: simsun;
        color: #fff;
        z-index: 5;
        cursor: pointer;
    }

    .button-next {
        right: 0;
    }

    .button-prev {
        left: 0;
    }

    .pagination {
        position: absolute;
        bottom: 0;
        left: 0;
        z-index: 5;
    }

    .pagination-bar {
        width: 129px;
        display: inline-block;
        float: left;
        height: 5px;
        background-color: #4a4110;
        margin-right: 1px;
        font-size: 0;
        cursor: pointer;
    }

    .pagination-bar-on {
        background-color: #ec7002;
    }

    .swiper-bottom {
        display: flex;

        a {
            width: 390px;
            height: 150px;
        }

        a:nth-of-type(1) {
            background-image: url(https://img10.360buyimg.com//babel/jfs/t1/174845/34/11281/7370/60ab5adfE28fbf546/4ac7cd3d8020a404.jpg!q80.webp);
        }

        a:nth-of-type(2) {
            background-image: url(https://img10.360buyimg.com//babel/jfs/t1/175323/37/10683/48949/60a6316dEafd7e7b6/33267288c489106b.jpg!q80.webp);
        }
    }
}

.main-right {
    width: 200px;
    height: 550px;
    background-color: white;
    position: absolute;
    top: 33px;
    right: 0;

    >div {
        width: 180px;
        padding: 0 10px;
        height: 275px;
        text-align: center;
    }

    .coupon-wrap {
        background-color: #FFEAC1;

        >p:nth-of-type(1) {
            padding: 20px 0 7px;
            line-height: 16px;
            font-size: 16px;
            font-weight: 400;
            color: #934b20;

            &:before,
            &:after {
                content: "";
                margin: 0 5px;
                display: inline-block;
                vertical-align: middle;
                width: 10px;
                height: 1px;
                background: #934b20;
            }
        }

        p:nth-of-type(2) {
            padding: 0 0 10px;
            line-height: 1;
            color: #af6f24;
            opacity: .5;
        }
    }

    .coupon {
        position: relative;
        border-top: 4px solid #ffa133;
        box-shadow: 0 3px 9px rgb(255 161 51 / 25%);
        background: #fff;

        >a:nth-of-type(1) {
            display: block;
            position: relative;
            height: 114px;
            padding-top: 30px;
            background: #fff;
            text-align: left;

            &:before {
                left: -4px;
            }

            &:after {
                right: -4px;
            }

            &:before,
            &:after {
                content: "";
                position: absolute;
                z-index: 2;
                bottom: 33px;
                width: 8px;
                height: 8px;
                background: #ffdeb2;
                border-radius: 8px;
            }

            p:nth-of-type(1) {
                height: 26px;
                margin: 0 15px 12px;
                font-size: 26px;
                color: #68300a;
                text-align: center;

                em {
                    margin-left: 6px;
                    line-height: 26px;
                    font-size: 36px;
                    font-weight: 700;
                }
            }

            p:nth-of-type(2) {
                height: 12px;
                line-height: 12px;
                margin: 0 18px 23px;
                color: #5f3211;
                text-align: center;
            }

            p:nth-of-type(3) {
                position: absolute;
                bottom: 0;
                left: 2px;
                width: 175px;
                height: 36px;
                line-height: 36px;
                color: #633415;
                text-align: center;
                border-top: 3px dashed #e6e6e6;
                overflow: hidden;
            }
        }

        >a:nth-of-type(2) {
            display: block;
            height: 36px;
            line-height: 36px;
            font-size: 14px;
            color: #fff;
            background: $or;
            border-radius: 2px;
            overflow: hidden;
        }
    }


    .swpier-wrap {
        background-color: #FFDEAA;

        h4 {
            padding: 10px 0;
            line-height: 16px;
            font-size: 16px;
            font-weight: 400;
            color: #934b20;

            &:before,
            &:after {
                content: "";
                margin: 0 5px;
                display: inline-block;
                vertical-align: middle;
                width: 10px;
                height: 1px;
                background: #934b20;
            }
        }

        p {
            padding: 0 0 10px;
            line-height: 1;
            color: #af6f24;
            opacity: .5;
        }

        .swiper-little {
            height: 185px;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 6px 13px rgb(255 160 24 / 26%);

            >div {
                padding: 20px 0;

                a {
                    display: block;
                }

                img {
                    margin: 0 auto 20px;
                    width: 100px;
                    height: 100px;
                }

                a:nth-of-type(2) {
                    display: inline-block;
                    width: 105px;
                    height: 25px;
                    line-height: 25px;
                    color: #fff;
                    border-radius: 15px;
                    background: $or;
                    background: linear-gradient(90deg, #ffa133 0, #ffc333);
                }
            }
        }

        .swiper-little-pagination {
            width: 180px;
            display: block;
            font-size: 0;
            padding-top: 10px;
            height: 18px;
            overflow: hidden;

            .little-paginatio-btn {
                display: inline-block;
                margin: 0 4px;
                width: 5px;
                height: 5px;
                border-radius: 100%;
                background: $or;
                border: 1px solid #ffdeaa;
            }

            .little-paginatio-btn-on {
                background: none;
                border-color: $or;

            }
        }
    }
}

.main-mode-head {
    background: url(../img/index/mian-mod-head.png) repeat-x 0 16px;
    overflow: hidden;
    padding: 0 0 20px;
    height: 35px;
    text-align: center;
    font-size: 24px;
    line-height: 35px;

    h3 {
        display: inline;
        padding: 0 50px;
        background-color: #f6f6f6;
        font-weight: 400;
        font-size: 26px;
        color: #333;
    }
}

.main-discount {
    min-height: 575px;

    .discount-big {
        display: flex;

        >div {
            width: 388px;
            margin: 0 10px 20px 0;
            background: #fff;
            border: 1px solid #f2f2f2;
            position: relative;
        }

        .discount-big-up {
            padding-top: 22px;
            width: 388px;
            height: 168px;
            @include flx(space-around, center);

            img {
                width: 150px;
                height: 150px;
            }


            span:nth-of-type(2) {
                width: 180px;
                height: 100px;
                flex-direction: column;
                @include flx(space-around);

                a {
                    height: 36px;
                    margin-bottom: 4px;
                    color: #333;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    display: -webkit-box;
                    -webkit-line-clamp: 2;
                }

                p {
                    padding: 0 15px;
                    max-height: 36px;
                    color: #ffa133;
                    background: #fff5ea;
                    overflow: hidden;
                }
            }
        }

        .discount-big-down {
            display: flex;
            position: relative;

            span {
                height: 60px;
                background: #f75f3c;
                color: white;
                font-size: 16px;
            }

            span:nth-of-type(1) {
                flex-basis: 200px;
                padding-left: 29px;
                line-height: 60px;

                &:before {
                    content: "";
                    position: absolute;
                    left: 0;
                    top: 0;
                    width: 0;
                    height: 0;
                    border: 5px solid transparent;
                    border-top: 5px solid #fff;
                    border-left: 5px solid #fff;
                    overflow: hidden;
                }
            }

            span:nth-of-type(2) {
                flex: 1;
                bottom: -60px;
                line-height: 60px;
                background: #ffa133;
                color: #fff;
                text-align: center;
                font-size: 16px;
                cursor: pointer;

                i {
                    position: relative;
                    top: 3px;
                    left: -10px;
                    display: inline-block;
                    width: 15px;
                    height: 15px;
                    background: url(../img/index/sprite_chaoshi_index@1x.png) -21px -52px;
                }
            }
        }
    }

    .discount-small {
        height: 250px;
        position: relative;
        border-top: 1px solid #e6e6e6;
        background-color: white;
        margin-bottom: 20px;

        .list-wrap {
            height: 100%;
            display: flex;

            span {
                position: relative;
                width: 164px;
                height: 100%;
                padding: 0 14px 0 19px;
                border-right: 1px solid #e6e6e6;

                p {
                    white-space: nowrap;
                    text-overflow: ellipsis;
                    overflow: hidden;
                }

                a:nth-of-type(1) {
                    position: relative;
                    text-align: center;
                    flex-direction: column;

                    @include flx(space-around, center);

                    img {
                        width: 130px;
                        height: 130px;
                        margin: 17px 0;
                        transition: transform 0.5s;
                    }

                    p {
                        width: 100%;
                        height: 18px;

                        align-self: flex-start;
                        transition: color 0.5s;
                    }

                    &:hover {
                        cursor: pointer;

                        img {
                            transform: translateY(-5px);
                        }

                        p {
                            color: $or;
                        }
                    }
                }

                p:nth-of-type(2) {
                    display: inline-block;
                    width: 95px;
                    font-size: 18px;
                    font-weight: 700;
                    margin-right: 5px;
                    color: #ff002f;
                    margin-top: 15px;
                }

                a:nth-of-type(2) {
                    position: absolute;
                    right: 14px;
                    bottom: 16px;
                    width: 30px;
                    height: 30px;
                    line-height: 30px;
                    text-align: center;
                    background: #ffa133;

                    i {
                        display: inline-block;
                        vertical-align: middle;
                        background: url(../img/index/sprite_chaoshi_index@1x.png) no-repeat -21px -52px;
                        background-size: 118px 73px;
                        width: 15px;
                        height: 15px;
                    }
                }
            }

            &:before {
                content: "";
                position: absolute;
                z-index: 2;
                left: 0;
                top: 0;
                width: 0;
                height: 0;
                border: 10px dashed transparent;
                overflow: hidden;
                border-top: 10px solid #fe952d;
                border-left: 10px solid #fe952d;
            }
        }

        .discount-small-right {
            position: absolute;
            right: 100px;
            top: 0;
            width: 100px;
            height: 259px;

            img {
                margin-left: -20px;
                min-width: 200px;
                min-height: 259px;
            }
        }

        &:after {
            content: "";
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 990px;
            height: 10px;
            background: url(../img/index/chaoshi_discount_line.png) 0 0 no-repeat;
        }
    }
}

.main-hotlist {
    min-height: 315px;
    padding-bottom: 15px;
    padding-top: 30px;

    .hot-list-swiper {
        height: 260px;
        background-color: white;
        position: relative;

        .swiper-wrapper {
            position: relative;
            box-shadow: 0 0 5px rgba(0, 0, 0, .0);

            >div {
                width: 1190px;
                height: 240px;

                >span {
                    position: relative;
                    width: 159px;
                    height: 240px;
                    padding: 20px 20px 0 19px;
                    display: block;
                    float: left;

                    img {
                        display: block;
                        margin: 0 auto 10px;
                        width: 140px;
                        height: 140px;
                        text-align: center;
                        overflow: hidden;
                    }

                    p {
                        color: #666;
                    }

                    .desc {
                        overflow: hidden;
                        margin-bottom: 14px;
                        height: 18px;
                        color: #999;
                        white-space: nowrap;
                        text-align: left;
                    }


                    p:nth-of-type(3) {
                        font-size: 18px;
                        color: #ff002f;
                    }

                    &:hover {
                        cursor: pointer;
                        box-shadow: 0 0 5px rgba(0, 0, 0, .2);

                        .padd {
                            transform: translateY(-60px);
                        }

                        .good-title,
                        .desc {
                            display: none;
                        }

                        p:nth-of-type(3) {
                            text-align: center;
                        }
                    }
                }
            }
        }

        .hot-list-next,
        .hot-list-prev {
            user-select: unset;
            position: absolute;
            top: 50%;
            margin-top: -30px;
            display: block;
            width: 24px;
            height: 60px;
            line-height: 60px;
            background: rgba(0, 0, 0, .21);
            text-align: center;
            font-size: 24px;
            font-weight: 400;
            font-family: simsun;
            color: #fff;
            z-index: 5;
            cursor: pointer;
        }

        .hot-list-prev {
            left: 0;
        }

        .hot-list-next {
            right: 0;
        }
    }
}


.main-category {
    padding-bottom: 25px;
    min-height: 540px;
    margin-top: 40px;

}

.main-category-bd {
    height: 485px;
    overflow: hidden;

}

.category-focus {
    position: relative;
    width: 190px;
    float: left;
    overflow: hidden;

    a {
        overflow: hidden;

        img {
            height: 485px;
        }
    }


}

.category-focus-keys {
    position: absolute;
    bottom: 0;
    width: 170px;
    height: 133px;
    padding: 20px 10px 12px;
    background: rgba(0, 0, 0, .2);

    >div {
        height: 133px;
        overflow: hidden;
        margin: 0;
        padding: 0;

        a {
            float: left;
            width: 70px;
            height: 24px;
            margin: 0 5px 8px;
            line-height: 24px;
            font-size: 12px;
            color: #fff;
            text-align: center;
            border: 1px solid #fff;
            border: 1px solid hsla(0, 0%, 100%, .6);
            background: hsla(0, 0%, 95%, .2);
            overflow: hidden;
        }
    }
}

.category-list {
    margin-left: 190px;
    background-color: #fff;

    ul {
        flex-wrap: wrap;
        @include flx()
    }

    li {
        position: relative;
        width: 168px;
        height: 233px;
        padding: 10px 15px 0;
        border-left: 1px solid #f2f2f2;
        border-bottom: 1px solid #f2f2f2;
        background-color: white;

        a:nth-of-type(1) {
            width: 130px;
            height: 130px;
            margin-bottom: 17px;
            display: block;
            margin: 0 auto 10px;
            text-align: center;
            overflow: hidden;

            img {
                height: 130px;
            }
        }

        >p {
            margin-bottom: 7px;
            height: 36px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
        }

        .price {
            p:nth-of-type(1) {
                float: left;
                margin-right: 10px;
                font-size: 14px;
            }

            p:nth-of-type(2) {
                display: none;
                float: right;
                font-size: 0;

                em {
                    margin-right: 5px;
                    font-size: 16px;
                    color: #000;
                }

                i {
                    display: inline-block;
                    background: url(../img/index/chaoshi_plus.png) 0 0 no-repeat;
                    width: 39px;
                    height: 12px;
                }
            }

            &:after {
                content: ".";
                display: block;
                height: 0;
                clear: both;
                visibility: hidden;
            }
        }

        a:nth-of-type(2) {
            height: 50px;
            line-height: 50px;
            transition: transform 0.5s
        }

        &:hover {
            cursor: pointer;

            .padd {
                transform: translateY(-60px);
            }
        }
    }
}

.floor-nav {
    display: none;
    position: fixed;
    width: 100px;
    z-index: 9;
    left: 50px;
    cursor: pointer;
    user-select: unset;

    li {
        text-align: center;
        height: 30px;
        line-height: 30px;
        background-color: white;
        user-select: unset;

        &.hover {
            color: #fff;
            background: #ffa133;
        }
    }
}